/**
 * 全局样式文件
 */

/* 重置默认样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#root {
  height: 100%;
}

/* 滚动条样式 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* 选择文本样式 */
::selection {
  background-color: #FF6A00;
  color: white;
}

::-moz-selection {
  background-color: #FF6A00;
  color: white;
}

/* 链接样式 */
a {
  color: #FF6A00;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #FF8C00;
}

/* 按钮焦点样式 */
button:focus-visible {
  outline: 2px solid #FF6A00;
  outline-offset: 2px;
}

/* 输入框焦点样式 */
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #FF6A00;
  outline-offset: 2px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  body {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 13px;
  }
}

/* 打印样式 */
@media print {
  * {
    -webkit-print-color-adjust: exact !important;
    color-adjust: exact !important;
  }
}
